import axios from "./axios";

export function getComment(id, limit, offset, before) {
  return axios({
    url: "/comment/playlist",
    params: {
      id,
      limit,
      offset,
      before,
    },
  });
}

export function getNewHotComment(id, type, pageNo, pageSize, sortType, cursor) {
  return axios({
    url: "/comment/new",
    params: {
      id,
      type,
      pageNo,
      pageSize,
      sortType,
      cursor,
    },
  });
}
